package com.sne.sys.entity;

import com.sne.common.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 岗位
 * @author fanghh
 * @date 2020/9/14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysPost对象", description = "岗位")
public class SysPost extends BaseModel<SysPost> {

    @ApiModelProperty(value = "岗位编号")
    @NotBlank(message = "岗位编号不能为空")
    private String postCode;

    @ApiModelProperty(value = "岗位名称")
    @NotBlank(message = "岗位名称不能为空")
    private String postName;

    @ApiModelProperty(value = "排序值")
    @NotNull(message = "排序值不能为空")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    @NotNull(message = "状态不能为空")
    private Boolean state;

    @ApiModelProperty(value = "备注")
    private String note;
}
